//
//  HACTecView.h
//  Pods
//
//  Created by Hotacool on 2017/8/31.
//
//

#import "HACChartView.h"
#import "HACRectProvider.h"
#import "HACRectRenderer.h"
#import "HACLineRenderer.h"
#import "HACLineProvider.h"

typedef NS_ENUM(NSUInteger, HACTecViewType) {
    HACTecViewTypeTimeLine,
    HACTecViewTypeKLine
};
typedef NS_ENUM(NSUInteger, HACTecViewIndexType) {
    HACTecViewIndexTypeVol,
    HACTecViewIndexTypeMacd,
    HACTecViewIndexTypeRsi,
    HACTecViewIndexTypeKDJ
};

@interface HACTecView : HACChartView <HACRectProvider, HACLineProvider>

/** 图类型：分时，K线 */
@property (nonatomic, assign, readonly) HACTecViewType viewType;
/** 指数类型 */
@property (nonatomic, assign, readonly) HACTecViewIndexType indexType;

@property (nonatomic, strong, readonly) HACRectRenderer *rectRenderer;
@property (nonatomic, strong, readonly) HACLineRenderer *lineRenderer;

- (instancetype)initWithViewType:(HACTecViewType)viewType andIndexType:(HACTecViewIndexType)indexType ;

- (void)setViewType:(HACTecViewType)viewType andIndexType:(HACTecViewIndexType)indexType ;
@end
